<?php /* Smarty version Smarty-3.1.18, created on 2015-05-13 18:50:27
         compiled from "../application/views/home/hotnewslist.tpl" */ ?>
<?php /*%%SmartyHeaderCode:56040972855532c73602463-16185481%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '55b2097173cc1d34009537f3913b927d900e5141' => 
    array (
      0 => '../application/views/home/hotnewslist.tpl',
      1 => 1421792959,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '56040972855532c73602463-16185481',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hotnews' => 0,
    'news' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_55532c7364bcd9_87773967',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55532c7364bcd9_87773967')) {function content_55532c7364bcd9_87773967($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('home/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div id="main">
	<div class="container">
		<?php echo $_smarty_tpl->getSubTemplate ('home/sidecate.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<div class="main-right">
			<div class="main-title">
				<h1>热点新闻</h1>
				<?php echo $_smarty_tpl->getSubTemplate ('home/crumbs.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			</div>
			<div class="main-content">
				<ul class="hotNews-list">
					<?php  $_smarty_tpl->tpl_vars['news'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['news']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotnews']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['news']->key => $_smarty_tpl->tpl_vars['news']->value) {
$_smarty_tpl->tpl_vars['news']->_loop = true;
?>
					<li>
						<div class="news-left">
							<h1>
								<a href="<?php echo site_url("home/content?Id=".((string)$_smarty_tpl->tpl_vars['news']->value['Id']));?>
" target="_blank"><?php echo h($_smarty_tpl->tpl_vars['news']->value['Title']);?>
</a>
							</h1>
							<p class="hotNews-detail">
								<span>发布时间：							
									<?php if (!empty($_smarty_tpl->tpl_vars['news']->value['PubTime'])) {?>
									<?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['news']->value['PubTime']);?>

									<?php } else { ?>
									<?php echo date('Y-m-d',$_smarty_tpl->tpl_vars['news']->value['Time']);?>

									<?php }?></span>
									<span>来源：<?php echo h($_smarty_tpl->tpl_vars['news']->value['Source']);?>
</span>
								</p>
								<p class="hotNews-brief">
									<a href="" target="_blank"><?php echo h($_smarty_tpl->tpl_vars['news']->value['Description']);?>
</a>
								</p>
							</div>
							<div class="news-right">
								<a href="<?php echo site_url("home/content?Id=".((string)$_smarty_tpl->tpl_vars['news']->value['Id']));?>
" target="_blank">
									<img src="<?php echo base_url();?>
/images/<?php echo $_smarty_tpl->tpl_vars['news']->value['Image'];?>
">
								</a>
							</div>
						</li>
						<?php } ?>
					</ul>
					<?php echo $_smarty_tpl->getSubTemplate ('home/page.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

				</div>
			</div>
		</div>
	</div>
	<?php echo $_smarty_tpl->getSubTemplate ('home/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }} ?>
